{extend name="layouts:form"/}

{block name="content"}
<form class="form-horizontal m" id="form-edit">
    <input type="hidden" name="id" value="{$info.id}">
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">孩子姓名：</label>
        <div class="col-sm-8">
            <input type="text" name="childs_name" value="{$info.childs_name}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">合同id：</label>
        <div class="col-sm-8">
            <input type="text" name="contract_id" value="{$info.contract_id}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">合同编码：</label>
        <div class="col-sm-8">
            <input type="text" name="contract_no" value="{$info.contract_no}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">创建时间：</label>
        <div class="col-sm-8">
            <input type="text" name="created_at" value="{$info.created_at}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">删除时间：</label>
        <div class="col-sm-8">
            <input type="text" name="deleted_at" value="{$info.deleted_at}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">过期时间：</label>
        <div class="col-sm-8">
            <input type="text" name="expired_at" value="{$info.expired_at}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">分阶情况：</label>
        <div class="col-sm-8">
            <input type="text" name="grading_situation" value="{$info.grading_situation}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">是否同意：</label>
        <div class="col-sm-8">
            <input type="text" name="is_agree" value="{$info.is_agree}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">家长微信：</label>
        <div class="col-sm-8">
            <input type="text" name="parent _wechat" value="{$info.parent _wechat}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">家长电话：</label>
        <div class="col-sm-8">
            <input type="text" name="parent_phone" value="{$info.parent_phone}" class="form-control" required autocomplete="off"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label is-required">签约时间：</label>
        <div class="col-sm-8">
            <input type="text" name="success_at" value="{$info.success_at}" class="form-control" required autocomplete="off"/>
        </div>
    </div>

</form>
{/block}

{block name="script"}
<script>
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(oesUrl, $('#form-edit').serialize());
        }
    }
</script>
{/block}
